<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浮动效果</title>
    <style>
        div{
            width: 200px;
            height: 100px;
        }
        #d1{
            background: red;
            float: right;
        }
        #d2{
            background: green;
            float: right;
        }
        #d3{
            background: blue;
            float: right;
        }
    </style>
</head>
<body>
<div id="d1"></div>
<div id="d2"></div>
<div id="d3"></div>
</body>
</html>